<extend name="Public/base"/>

<block name="body">
    <div>
        <form method="POST" id="list" action="{:U('sellpriceexport')}">
            <input type="hidden" name="batch" value="{$batch}">
            <input type="hidden" name="user" value="{$user}">
            <div class="main-title">
                <h2>销售价格</h2>
                <button type="submit" class=" confirm btn btn-default">导出</button>
            </div>
            <div class="cf">
                <div class="fl cf">
                    <a href="{:U('gydinpriceupdate')}&batch={:I('batch')}" class="btn btn-danger ajax-get">更新进货价</a>
                </div>
                <div class="search-form fr cf">
                </div>
            </div>
        </form>
        <!-- 数据列表 -->
        <div class="data-table table-striped">
            <table>
                <thead>
                <tr>
                    <th>BIN</th>
                    <th>商品名称[规格]</th>
                    <th>果饮店售价</th>
                </tr>
                </thead>
                <tbody>
                    <volist name="_list" id="vo">
                        <tr >
                            <td>
                                <a href="{:U('gydinpriceupdate')}&batch={$vo.batch}&id={$vo.id}" class="ajax-get" style="text-decoration: none">
                                    <span style="margin-left: 10px;" class="glyphicon glyphicon-refresh" title="点击更新售价"></span>
                                </a>
                                {$vo.BIN}
                            </td>
                            <td>
                                {$vo.pname}[{$vo.BIN|get_name_by_id=###,'Material_product','BIN','spec'}]
                            </td>
                            <td>
                                {$vo['spec_price_gyd']}
                            </td>
                        </tr>
                    </volist>
                </tbody>
            </table>
        </div>
        <div class="page">
            {$_page}
        </div>
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        highlight_subnav('{:U('Dingjia/sellpricegyd')}');

    </script>
</block>
